package cn.fanyamin.web.service;

import java.util.List;

import cn.fanyamin.domain.Category;
import cn.fanyamin.web.dao.CategoryDao;
import cn.fanyamin.web.dao.CategoryNoDbDao;

public class CategoryServiceImpl implements CategoryService {
    private CategoryDao dao;

    public CategoryServiceImpl() {
        this.dao = new CategoryNoDbDao();
    }

    public List<Category> getCategories() {
        return this.dao.getCategories();
    }

}
